home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / sky-chopper.swf / scripts / frame_336 / PlaceObject2_1915_133 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-09-29  |  690 b   |  26 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.gamePaused && !_root.landing)
  3.    {
  4.       frameCount++;
  5.       if(frameCount >= _root.LaserDelay && !_root.laserIsCharged)
  6.       {
  7.          this.gotoAndStop(this._currentframe + 1);
  8.          frameCount = 0;
  9.          this._alpha = 100;
  10.          if(this._currentframe == 8)
  11.          {
  12.             _root.laserIsCharged = true;
  13.             _root.type("Laser Cannon 100% charged!","small");
  14.             if(_root.heli.rl == "in")
  15.             {
  16.                _root.heli.lasergun.gotoAndPlay("expand");
  17.             }
  18.          }
  19.       }
  20.    }
  21.    if(this._currentframe == 8)
  22.    {
  23.       this._alpha = _root.theFlicker2.flick._alpha;
  24.    }
  25. }
  26.